package com.message.dao;

import com.message.VO.SampleInfoDTO;
import com.message.VO.SampleInfoUpdateVo;
import com.message.VO.SampleInfoVO;
import com.message.pojo.SampleInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

public interface SampleInfoMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SampleInfo record);

    int insertSelective(SampleInfo record);

    SampleInfo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SampleInfo record);

    int updateByPrimaryKey(SampleInfo record);

    List<SampleInfoVO> selectAll(SampleInfoDTO sampleInfoDTO);
    //导出全部数据
    List<SampleInfoVO> selectAllExcel();
    //勾选导出
    List<SampleInfoVO> selectByIdList(@Param("idList") Integer[] idList);
    //批量删除 单条删除
    int deleteByIdList(@Param("idList") Integer[] idList);
    SampleInfoUpdateVo selectById(@Param("id") Integer id);
}